@extends('admin.main')
@section('body')
    <div class="main-title">
        <h2>{{isset($info['id']) ? '编辑':'新增'}}打印机</h2>
    </div>
    <div class="tab-wrap">
        <div class="tab-content">
            <form action="" method="post" class="form-horizontal">
                <!-- 基础 -->
                <div id="tab1" class="tab-pane in tab1">
                    <div class="form-item">
                        <label class="item-label">
                            打印机编号<span class="check-tips">（打印机编号不能为空）</span>
                        </label>
                        <div class="controls">
                            <input type="text" name="serial_number" class="text input-large" placeholder=""
                                   value="{{isset($info['serial_number']) ? $info['serial_number'] : ''}}">
                        </div>
                    </div>
                    <div class="form-item">
                        <label class="item-label">
                            打印机识别码<span class="check-tips">（打印机识别码不能为空）</span>
                        </label>
                        <div class="controls">
                            <input type="text" name="auth_code" class="text input-large" placeholder=""
                                   value="{{isset($info['auth_code']) ? $info['auth_code'] : ''}}">
                        </div>
                    </div>
                    <div class="form-item">
                        <label class="item-label">
                            备注名称<span class="check-tips">（选填）</span>
                        </label>
                        <div class="controls">
                            <input type="text" name="desc" class="text input-large"
                                   value="{{isset($info['desc']) ? $info['desc'] : ''}}">
                        </div>
                    </div>
                    <div class="form-item">
                        <label class="item-label">
                            流量卡号码<span class="check-tips">（选填）</span>
                        </label>
                        <div class="controls">
                            <input type="text" name="mobile" class="text input-large"
                                   value="{{isset($info['mobile']) ? $info['mobile'] : ''}}">
                        </div>
                    </div>
                    <!-- 高级 -->
                    <div class="form-item">
                        <input type="hidden" name="id" value="{{isset($info['id']) ? $info['id'] : ''}}">
                        <button type="submit" id="submit" class="btn submit-btn ajax-post"
                                target-form="form-horizontal">确 定
                        </button>
                        <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
@endsection
